//
//  UIBarButtonItem+Extension.m
//  微博
//
//  Created by 杨佩璋 on 15/6/24.
//  Copyright (c) 2015年 杨佩璋. All rights reserved.
//

#import "UIBarButtonItem+Extension.h"

@implementation UIBarButtonItem (Extension)

// + (UIBarButtonItem *)itemWithTarget:(id)target action:(SEL)action image:(UIImage *)image highImage:(UIImage *)highImage
//{
//    
//    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
//    [button addTarget:target action:action forControlEvents:UIControlEventTouchUpInside];
//    [button setBackgroundImage:image forState:UIControlStateNormal];
//    [button setBackgroundImage:highImage forState:UIControlStateHighlighted];
//    button.size = button.currentBackgroundImage.size;
//    return [[[UIBarButtonItem alloc] initWithCustomView:button] autorelease];
//}
@end
